package com.wanghaixin.exception;

/**
 * @Auther: 王海新
 * @Date: 2020/10/28 12:24
 * @Description:统一异常开发
 */
public class RException extends RuntimeException{
    //一般核心返回值两个，一个是状态码
    //一个是错误信息
    private int code;
    private String msg;

    public RException() {
    }

    public RException(String msg) {
        this.msg = msg;
    }

    public RException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int conde) {
        this.code = conde;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
